package com.sxkiler.demo.medium;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.*;
import com.sxkiler.demo.model.*;

/**
solve-the-equation=求解方程
<p>求解一个给定的方程，将<code>x</code>以字符串"x=#value"的形式返回。该方程仅包含'+'，' - '操作，变量&nbsp;<code>x</code>&nbsp;和其对应系数。</p>

<p>如果方程没有解，请返回&ldquo;No solution&rdquo;。</p>

<p>如果方程有无限解，则返回&ldquo;Infinite solutions&rdquo;。</p>

<p>如果方程中只有一个解，要保证返回值&nbsp;<code>x</code>&nbsp;是一个整数。</p>

<p><strong>示例 1：</strong></p>

<pre><strong>输入:</strong> "x+5-3+x=6+x-2"
<strong>输出:</strong> "x=2"
</pre>

<p><strong>示例 2:</strong></p>

<pre><strong>输入:</strong> "x=x"
<strong>输出:</strong> "Infinite solutions"
</pre>

<p><strong>示例 3:</strong></p>

<pre><strong>输入:</strong> "2x=x"
<strong>输出:</strong> "x=0"
</pre>

<p><strong>示例 4:</strong></p>

<pre><strong>输入:</strong> "2x+3x-6x=x+2"
<strong>输出:</strong> "x=-1"
</pre>

<p><strong>示例 5:</strong></p>

<pre><strong>输入:</strong> "x=x+2"
<strong>输出:</strong> "No solution"
</pre>

 */
public class solveEquation {
    

    class Solution {
        public String solveEquation(String param0) {
            return null;
        }
    }

    @Test
    public void test(){
        Solution solution = new Solution();
        /**
        "x+5-3+x=6+x-2"
        */
        //int [] num1 = new int[]{1,3};
        //int [] num2 = new int[]{2};
        //Assertions.assertEquals(solution.{{questionName}}(num1,num2),2);
    }
}

